package site.luojie.session.consistence.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import site.luojie.session.consistence.entity.Account;
import site.luojie.session.consistence.repository.AccountRepository;
import site.luojie.session.consistence.service.AccountService;

/**
 * @author jie.luo
 * @description
 * @since 2020-06-30
 */
@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountRepository accountRepository;

    @Override
    public Account findAccount(String username, String password) {
        return accountRepository.selectAccount(username, password);
    }
}
